package cn.jinjie.day03.test6;

public class Demo1 {
    public static void main(String[] args) {
        // start(new Cat());
        // start(new Dog());

        Computer c = new Computer();
        c.addUSB(new Mouse());
        c.addUSB(new Keyboard());
        c.addUSB(new HardDisk());
        c.turnon();
        System.out.println("--------------");
        c.turnoff();

    }

    public static void start(SuperInter s) {
        s.jinhua();
    }
}
